package com.gujiayue.module.sys.pojo.copier;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.gujiayue.module.sys.pojo.SysRoleUsr;
import com.gujiayue.module.sys.pojo.SysUsrDo;
import com.gujiayue.module.sys.pojo.query.QueryLogin;

@Mapper
public interface AuthCopier {

	/*** 初始化实例 */
	AuthCopier INSTANCE = Mappers.getMapper(AuthCopier.class);

	/**
	 * SysUsrDo转SysRoleUsr
	 * 
	 * @param sysUsrDo
	 * @return
	 */
	SysRoleUsr copierSysRoleUsr(SysUsrDo sysUsrDo);

	/**
	 * QueryLogin转SysUsrDo
	 * 
	 * @param queryLogin
	 * @return
	 */
	SysUsrDo toSysUsrDo(QueryLogin queryLogin);
}
